
<div class="box-login">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
	'id' => 'login-form',
//	'enableAjaxValidation' => false,
//	'enableClientValidation' => true,
//	'clientOptions' => array(
//	    'validateOnSubmit' => true
//	),
	'htmlOptions' => array(
	    'class' => 'form-horizontal'
	)
    ));
    ?>
    <?php
    if ($form->errorSummary($modelForm)) {
	?>
        <div id="error-sign-in" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    	<div class="modal-header">
    	    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    	    <h3 id="myModalLabel">Error!</h3>
    	</div>
    	<div class="modal-body">
    	    <div class="alert alert-error"><?php echo $form->errorSummary($modelForm) ?></div>
    	</div>
    	<div class="modal-footer">
    	    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>		
    	</div>
        </div>
	<?php
    }
    ?>
    <p>
	<?php echo $form->textField($modelForm, 'username', array('placeholder' => 'Username / Email')); ?>
	<?php // echo $form->error($modelForm, 'username'); ?>
    </p>
    <p>
	<?php echo $form->passwordField($modelForm, 'password', array('placeholder' => 'Password')); ?>
	<?php // echo $form->error($modelForm, 'password'); ?>

    </p>
    <p>
	<button type="submit" class="btn btn-warning" name="login">Sign in</button>
    </p>
    <div class="clear"></div>
    <label style="float:left; margin-right:45px;" class="checkbox">
	<?php echo $form->checkBox($modelForm, 'rememberMe'); ?> Keep me Login
    </label>
    <a href="<?php echo SITE_NAME_URL ?>site/forgot_password">Forgot Password?</a>
    <?php $this->endWidget(); ?>					
</div>